package com.ming.test;

import com.ming.dao.SSMAccountDao;
import com.ming.pojo.SSMAccount;
import com.ming.service.SSMAccountService;
import org.apache.ibatis.io.Resources;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.apache.ibatis.session.SqlSessionFactoryBuilder;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import java.io.InputStream;
import java.util.Date;
import java.util.List;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = "classpath:applicationContext.xml")
public class testSpringService {

    @Autowired
    private SSMAccountService as;
    @Test
    public void testTransfer(){
        List<SSMAccount>  ssmAccounts=as.findSSMAccountAll();
        for (SSMAccount ssmAccount:ssmAccounts){
        System.out.println(ssmAccount);}

    }
}



